package com.dragon.mmochat.model.task;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.dragon.mmochat.model.role.MmochatMonsterFactory;
import com.dragon.mmochat.util.MmochatUtil;
import com.google.gson.reflect.TypeToken;

public class MmochatNpcBattle implements Serializable {
	private static final long serialVersionUID = -9143766527814133436L;
	MmochatMonsterFactory boss = null;
	List<MmochatMonsterFactory> smallBoss = new ArrayList<MmochatMonsterFactory>();
	boolean mustWin = true;
	boolean finishTeamTask = false;// true:战斗后全队有同类任务的人都完成任务；false:只完成队长的任务

	public MmochatNpcBattle getClone() {
		MmochatNpcBattle clone = (MmochatNpcBattle) MmochatUtil.deepClone(this,
				new TypeToken<MmochatNpcBattle>() {
				}.getType());
		return clone;
	}

	public MmochatMonsterFactory getBoss() {
		return boss;
	}

	public void setBoss(MmochatMonsterFactory boss) {
		this.boss = boss;
	}

	public List<MmochatMonsterFactory> getSmallBoss() {
		return smallBoss;
	}

	public void setSmallBoss(List<MmochatMonsterFactory> smallBoss) {
		this.smallBoss = smallBoss;
	}

	public boolean isMustWin() {
		return mustWin;
	}

	public void setMustWin(boolean mustWin) {
		this.mustWin = mustWin;
	}

	public boolean isFinishTeamTask() {
		return finishTeamTask;
	}

	public void setFinishTeamTask(boolean finishTeamTask) {
		this.finishTeamTask = finishTeamTask;
	}

}
